package demo.component.student;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class StudentControl {
    @Resource
    private Student student;

    public void sayHi(){
        System.out.println(student);
    }
}
